package com.linkelee.properties;


/**
 *  rabbitmq元素键生成器
 * @author lsl
 * @since 2019-04-15
 *
 */
public class RpcMqElementKeyBuilder {

    public static final String EXCHANGE_PREFIX = "exchange_";

    public static final String ROUTINGKEY_PREFIX = "routingkey_";

    public static final String QUEUE_PREFIX = "queue_";

    public static final String DEFAULT_EXCHANGE = "rpc-server";


    public static String buildRoutingKey(String name) {
        return ROUTINGKEY_PREFIX + name;
    }

    public static String buildQueueName(String name) {
        return QUEUE_PREFIX + name;
    }

    public static String buildExchangeName(String name) {
        return EXCHANGE_PREFIX + name;
    }

}
